home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / masdir54.zip / DEMOPRN.BAT < prev    next >
DOS Batch File  |  1990-10-21  |  8KB  |  183 lines

  1. ECHO OFF
  2. IF (%SDL%) == () SET SDL=S
  3. IF (%SDL%) == () GOTO ENVIRON
  4. sdl_get B
  5. sdl_get P
  6. IF ERRORLEVEL 1 GOTO first
  7. ECHO The system check indicates that there may not be a printer attached.
  8. sdl_get N "Continue with printing DEMO anyway (Y,n)? "
  9. IF ERRORLEVEL 126 GOTO END
  10. IF ERRORLEVEL 78 IF NOT ERRORLEVEL 79 GOTO end
  11. :first
  12. ECHO * * *
  13. ECHO Now we will use your printer to demonstrate the printing capabilities
  14. ECHO of SDL.  There are 6 print parameters, the first 2 on the command line:
  15. ECHO      /L for automatic Label printing.
  16. ECHO      /P to pop up the print options menu.
  17. ECHO  And the last 4 from the print menu:
  18. ECHO      L to Write labels in compressed print, 8 lines per inch.
  19. ECHO      R for Regular pRint - your printer settings will not be changed.
  20. ECHO      I to print sleeve Inserts, compressed, 8 lines per inch.
  21. ECHO      T for Tiny print using compressed and superscript.
  22. ECHO * * *
  23. ECHO L can fit 5 file names in each column on a standard label, or
  24. ECHO 7 if H is used to suppress the first two lines of the header.
  25. ECHO This means that you can get up to 42 names on a label with L. T can fit
  26. ECHO fit 11 or more file names in each column, so with 6 columns you can get
  27. ECHO 66 file names on one label.  If you use the H option to eliminate the
  28. ECHO first two lines of the header, you can get 13 names per column for
  29. ECHO a maximum of 78 names on the 5 x 1-7/16" labels provided with SDL.
  30. ECHO (SDLSETUP will let you increase these numbers if your printer
  31. ECHO can handle more.)
  32. ECHO * * *
  33. pause
  34. ECHO Don't bother to load your printer with labels for this demo.
  35. ECHO Regular paper will work nicely for now.
  36. ECHO * * *
  37. ECHO Sorry, but there is no way to demonstrate the printing features without
  38. ECHO changing the Top Of Form (TOF) setting of your printer. SDL will
  39. ECHO return your printer to its normal print mode, all that is necessary
  40. ECHO for you to do is just realign your paper when finished.
  41. ECHO * * *
  42. sdl_get N "Is this acceptable (Y,n)? "
  43. if errorlevel 126 goto end
  44. If errorlevel 89 goto continue
  45. ECHO * * *
  46. ECHO Please note that you can set the sleeve Insert option (/I) to eject
  47. ECHO a full page with SDLSETUP if you want to.  Then it will not disturb
  48. ECHO your TOF setting.
  49. ECHO * * *
  50. sdl_get N "Do you really want to exit (Y,n)? "
  51. if errorlevel 89 goto end
  52. :continue
  53. sdl_get B
  54. ECHO * * *
  55. ECHO When you are using SDL to print, if you exit with Ctrl-C or Ctrl-Break
  56. ECHO you will not give SDL a chance to return your printer to its normal
  57. ECHO setting.  Always exit normally by using space or Enter or Esc.
  58. :second
  59. ECHO * * *
  60. ECHO To start with, the L option will be demonstrated.
  61. ECHO * * *
  62. ECHO This is completely automatic and so easy that it is not all that
  63. ECHO exciting to demonstrate.  The /L (for Label) option automatically
  64. ECHO determines an appropriate way to print the number of files you have
  65. ECHO selected.  The automatic calculation is only available from the command
  66. ECHO line.  It is not available as a menu item because at that point WYSIWYG
  67. ECHO (what you see is what you get) and you can make your own selections.  
  68. ECHO This is how SDL lets you keep control if you want to.
  69. ECHO The command is simply
  70. ECHO * * *
  71. ECHO SDL /L/M
  72. ECHO * * *
  73. ECHO The optional /M is for More and toggles off the pause at the end.
  74. pause
  75. SDL /L/M
  76. ECHO Note that if you have more files than will fit on a label SDL
  77. ECHO will report that fact and exit without printing.
  78. pause
  79. :third
  80. ECHO * * *
  81. ECHO This time the DEMO will require your cooperation.  The /P option
  82. ECHO will pop up the print option menu.  We will let you select L, R, I, or T
  83. ECHO from the menu to print the way you want to. You may try several
  84. ECHO different selections, but after each one you have to press P
  85. ECHO to bring up the print menu again.
  86. ECHO * * *
  87. ECHO When you use /P on the command line, the FIRST time the print
  88. ECHO menu pops up, and ONLY the first time, L or T will cause the
  89. ECHO number of columns to be adjusted to fit on a label, or you will
  90. ECHO see the report that there are too many files for a label.
  91. ECHO However, when you select P from the menu, the number of columns
  92. ECHO has already been set and will not be changed.  To change columns
  93. ECHO at that point use the 2, 4, or 6 menu selections instead.
  94. ECHO * * *
  95. sdl_get N "Enter Y to continue, N to repeat the previous demo (Y,n)? "
  96. if errorlevel 126 goto end
  97. if errorlevel 78 if not errorlevel 79 goto second
  98. sdl_get B
  99. ECHO With R your printer will print in its normal fashion.  You can experiment
  100. ECHO with different column options if you like.  Notice that the prompting
  101. ECHO information (menu) is not printed, so even if SDL pauses, your output
  102. ECHO looks OK.  You can also turn off the top two header lines if you like.
  103. ECHO * * *
  104. ECHO The I option prints in compressed mode, but the number of columns
  105. ECHO is adjusted for the size of the screen, not for a label.  This
  106. ECHO is used to print in an appropriate size to cut out and slip into
  107. ECHO the diskette envelope.
  108. ECHO * * *
  109. ECHO Pressing Esc turns printing off, Return [CR] makes no change.
  110. ECHO The command is
  111. ECHO * * *
  112. ECHO SDL /P/C
  113. ECHO The optional /C will suppress the clearing of the screen.  You
  114. ECHO can cause the screen to clear and the printer to eject the label
  115. ECHO by pressing the C (for Cls) key when shown on the menu.  Note
  116. ECHO the [ff ON] or [ff OFF] depending on whether you have set form feed
  117. ECHO ON or OFF using the Cls selection.
  118. pause
  119. SDL /P/C
  120. sdl_get B
  121. ECHO * * *
  122. ECHO Although it may be convenient to do so, it is not absolutely necessary
  123. ECHO to suppress pausing when printing.  The prompts will not be printed,
  124. ECHO and SDL will not pause at an intermediate menu or the rest of the
  125. ECHO directory list would not be printed.
  126. ECHO * * *
  127. ECHO Notice that when exiting, SDL ejects the Insert or Label and positions
  128. ECHO the next one automatically.
  129. ECHO * * *
  130. ECHO If you print an even number of Inserts, your TOF will be back to where
  131. ECHO you had it set.  If you print an odd number, it will be in the middle
  132. ECHO of the page, but this allows two Inserts on a page, and can save paper
  133. ECHO when printing several inserts.  Please note that you can set the sleeve
  134. ECHO Insert option to eject a full page if you want to by using SDLSETUP.
  135. ECHO That way your TOF setting will not be disturbed.
  136. ECHO * * *
  137. sdl_get N "Enter Y to continue, N to repeat the previous demo (Y,n)? "
  138. if errorlevel 126 goto end
  139. if errorlevel 78 if not errorlevel 79 goto third
  140. :fourth
  141. sdl_get B
  142. ECHO * * *
  143. ECHO If you do not include /P on the command line, then you can select
  144. ECHO printing by pressing P when it is shown highlighted on the menu.
  145. ECHO When you initiate printing this way, SDL assumes that you have
  146. ECHO adjusted the number of columns to your liking and will print "as
  147. ECHO is."  If you are printing labels make sure that you do not have
  148. ECHO more rows of file names than will fit on a label.  5 or 7 for
  149. ECHO L depending on the Hdr toggle setting, and 11 or 13 for T, or
  150. ECHO more if you have selected more when running SDLSETUP.
  151. ECHO * * *
  152. ECHO Notice that the first items on the menu are [Prn OFF ff OFF].
  153. ECHO When you start printing the first one will change to [Prn ON].
  154. ECHO If you press C the second will change to [ff ON].  You can turn
  155. ECHO both off again by pressing P for the print menu, then pressing Esc.
  156. ECHO * * *
  157. pause
  158. ECHO This time we will let you make all the selections.  Use 2, 4, or 6
  159. ECHO to adjust the number of columns, then press P for the print menu,
  160. ECHO and select the type of printing you want.  Experiment with Cls
  161. ECHO when you see it on the menu, and try turning printing off with Esc.
  162. ECHO We will also use the /E option to let you enter your own titles
  163. ECHO in the header.
  164. ECHO * * *
  165. ECHO The command is simply
  166. ECHO SDL /e
  167. ECHO * * *
  168. pause
  169. SDL /e
  170. ECHO * * *
  171. ECHO When using the /E option to enter titles you can blank out a title
  172. ECHO line completely by entering one or more spaces.  To keep any
  173. ECHO line of the title unchanged, just press Enter with no spaces.
  174. ECHO * * *
  175. ECHO That was the last printing demo.
  176. ECHO * * *
  177. sdl_get N "Enter Y to exit, N to repeat the previous demo (Y,n)? "
  178. if errorlevel 78 if not errorlevel 79 goto fourth
  179. :end
  180. MENU
  181. :ENVIRON
  182. MENU ENVIRON
  183.